using System;
using System.Collections.Generic;
using System.Text;

namespace RobotCtrl
{
	public class Radar
	{
        /// <summary>
        /// Returns the distance in meter
        /// </summary>
        public double Distance { get { return sensor.Distance; } }
        
		public Radar(Robot robot, RunMode mode)
		{
			if (!Config.IsWinCE)
				mode = RunMode.VIRTUAL;
			if (mode == RunMode.VIRTUAL)
			{
				sensor = new RadarSensor();
			}
			else
			{
				sensor = new RadarSensor_HW(Config.IORadarSensor);
			}
		}

		RadarSensor sensor;
	}
}
